package com.chentongwei.spring.annotation.component.config;

import com.chentongwei.spring.annotation.component.service.BookService;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;
import org.springframework.stereotype.Repository;

/**
 * @Description:
 *
 * @author TongWei.Chen 2018-06-29 14:33:15
 * @Project spring-annotation
 */
@ComponentScan(
        value = "com.chentongwei.spring.annotation.component",
        /*excludeFilters = {
                @ComponentScan.Filter(type = FilterType.ANNOTATION, classes = {Service.class, Controller.class})
        }*/
        useDefaultFilters = false,
        includeFilters = {
//                @ComponentScan.Filter(type = FilterType.ANNOTATION, classes = {Repository.class}),
//                @ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, classes = {BookService.class}),
                @ComponentScan.Filter(type = FilterType.CUSTOM, classes = {MyTypeFilter.class})
        }
)
public class MainConfig {

}
